package com.ygs.secs.model;

import java.io.Serializable;

/**
 * 校内经历
 */
public class Event implements Serializable {
    //事件编号
    private Integer eventid;

    //事件内容
    private String eventcontent;

    //时间
    private String eventtime;

    //附件
    private String eventenclosure;

    //所属学生
    private Student student;

    private static final long serialVersionUID = 1L;

    public Integer getEventid() {
        return eventid;
    }

    public void setEventid(Integer eventid) {
        this.eventid = eventid;
    }

    public String getEventcontent() {
        return eventcontent;
    }

    public void setEventcontent(String eventcontent) {
        this.eventcontent = eventcontent;
    }

    public String getEventtime() {
        return eventtime;
    }

    public void setEventtime(String eventtime) {
        this.eventtime = eventtime;
    }

    public String getEventenclosure() {
        return eventenclosure;
    }

    public void setEventenclosure(String eventenclosure) {
        this.eventenclosure = eventenclosure;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eventid=").append(eventid);
        sb.append(", eventcontent=").append(eventcontent);
        sb.append(", eventtime=").append(eventtime);
        sb.append(", eventenclosure=").append(eventenclosure);
        sb.append(", stuid=").append(student.getStuid());
        sb.append("]");
        return sb.toString();
    }
}